/*
 * iShopPlace Project.
 */
package ishopplace.view.bean;

import ishopplace.model.businessobject.*;

import java.util.List;

import org.springframework.beans.support.PagedListHolder;


/**
 * The managed bean with session scope. 
 * <p>
 * It is used as a session scope cache.
 * In JSF, the properties are set by bean management facility.
 * 
 * @author <a href="mailto:derek@derekshen.com">Derek Y. Shen</a>
 */
public class SessionBean extends BaseBean {
	private Category currentCategory;
	private PagedListHolder currentProductList;
	private Product currentProduct;
	private PagedListHolder currentItemList;
	private String currentSearchKeywords;
	private PagedListHolder currentSearchResult;
	private String currentFavoriteCategory;
	private List myList;
	
	public SessionBean() {
		super();
	}
	
	public Category getCurrentCatetory() {
		return this.currentCategory;
	}
	
	public void setCurrentCategory(Category newCurrentCategory) {
		this.currentCategory = newCurrentCategory;
	}
	
	public PagedListHolder getCurrentProductList() {
		return this.currentProductList;
	}
	
	public void setCurrentProductList(PagedListHolder newCurrentProductList) {
		this.currentProductList = newCurrentProductList;
	}
	
	public Product getCurrentProduct() {
		return this.currentProduct;
	}
	
	public void setCurrentProduct(Product newCurrentProduct) {
		this.currentProduct = newCurrentProduct;
	}
	
	public PagedListHolder getCurrentItemList() {
		return this.currentItemList;
	}
	
	public void setCurrentItemList(PagedListHolder newCurrentItemList) {
		this.currentItemList = newCurrentItemList;
	}
	
	public String getCurrentSearchKeywords() {
		return this.currentSearchKeywords;
	}
	
	public void setCurrentSearchKeywords(String newKeyword) {
		this.currentSearchKeywords = newKeyword;
	}
	
	public PagedListHolder getCurrentSearchResult() {
		return this.currentSearchResult;
	}
	
	public void setCurrentSearchResult(PagedListHolder newResult) {
		this.currentSearchResult = newResult;
	}
	
	public String getCurrentFavoriteCategory() {
		return this.currentFavoriteCategory;
	}
	
	public void setCurrentFavoriteCategory(String newCategory) {
		this.currentFavoriteCategory = newCategory;
	}
	
	public List getMyList() {
		return this.myList;
	}
	
	public void setMyList(List newMyList) {
		this.myList = newMyList;
	}
}
